package com.hmall.client;

import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(value = "itemservice")
public interface ItemClient {

        /**
         * 分页查询
         * @param page
         * @param size
         * @return
         */
        @GetMapping("/item/list")
        public PageDTO<Item> page(@RequestParam("page") int page,@RequestParam("size") int size);


}


